#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:装饰有参数的函数.py
# author: 马国鑫
# datetime:2022/3/18 21:43
# software: PyCharm

"""
this is function  description 
"""


# import module your need

def func_out(func):
    def func_in():
        # 如果函数内没有return 那么就返回None
        ret = func()
        return ret

    return func_in


# 相当于my_test = func_out(my_test)
@func_out
def my_test():
    return 100


a = my_test()
print(a)
